package com.xiaoma.chat.dto;

public class CreateRelationshipDto {

    private Integer teacherId;
    private Integer studentId;
    private Integer groupId;
    private Integer sendId;
    public Integer getTeacherId() {
        return teacherId;
    }
    public void setTeacherId(Integer teacherId) {
        this.teacherId = teacherId;
    }
    public Integer getStudentId() {
        return studentId;
    }
    public void setStudentId(Integer studentId) {
        this.studentId = studentId;
    }
    public Integer getGroupId() {
        return groupId;
    }
    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }
    public Integer getSendId() {
        return sendId;
    }
    public void setSendId(Integer sendId) {
        this.sendId = sendId;
    }
    public boolean validate() {
        return this.teacherId != null && this.studentId != null && this.groupId != null && this.sendId != null && (this.sendId.intValue() == this.teacherId.intValue() || this.sendId.intValue() == this.studentId.intValue());
    }
}
